
Ext.Loader.setConfig({
    paths: {
        'Ext': '/Content/ExtJs',
    }
});

Ext.define('app.Application', {
    extend: 'Ext.app.Application',
    name: 'app',
    appFolder: '/Ext',
    views: [],
    //requires: ['app.main.Login', 'app.main.Main'],
    stores: [],
    controllers: [
        'App'
    ],
    defaultToken: 'home',
    init: function () {
        console.log("Loading application");
    },
    autoCreateViewport: 'app.main.Main',
    launch: function () {
        var me = this;
        //var login = new app.main.Login();
        //login.on("login", function (username) {
        //    Ext.create('Ext.container.Viewport', {
        //        layout: 'fit',
        //        renderTo: Ext.getBody(),
        //        items: [
        //            new app.main.Main()
        //        ]
        //    });
        //    login.close();
        //});
        //login.show();
    }
});
